const express = require('express');
const { sendMessage, getMessages, getRecentMessages } = require('../controllers/allGroupController');

const router = express.Router();

router.post('/messages', sendMessage);
router.get('/messages', getMessages);
router.get('/recent-messages', getRecentMessages);

module.exports = router; 